

export const createUnique = () => {
    const buf = new Uint32Array(1);
    crypto.getRandomValues(buf);
    return buf[0];
}

export const delay = async (timeout: number) => {
    return new Promise((resolve, _) => {
        setTimeout(resolve, timeout);
    })
}

